package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.TransferAccountsVxDetailAddDTO;
import org.jsola.hr.dto.TransferAccountsVxDetailUpdateDTO;
import org.jsola.hr.query.TransferAccountsVxDetailQuery;
import org.jsola.hr.vo.TransferAccountsVxDetailListVO;
import org.jsola.hr.vo.TransferAccountsVxDetailVO;

import java.util.List;

/**
 * 转账明细(微信)
 *
 * @author zhr
 */
@Api(tags = "hr-转账明细(微信)")
public interface ITransferAccountsVxDetailControllerAPI {

    /**
     * 新增转账明细(微信)
     * @param transferAccountsVxDetailAddDTO 转账明细(微信)新增实体
     * @return 转账明细(微信)展示对象
     */
    @ApiOperation(value = "新增转账明细(微信)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsVxDetailAddDTO", dataType = "TransferAccountsVxDetailAddDTO", value = "新增转账明细(微信)", paramType = "body")
    })
    Result<TransferAccountsVxDetailVO> save(TransferAccountsVxDetailAddDTO transferAccountsVxDetailAddDTO);


    /**
     * 修改转账明细(微信)
     * @param transferAccountsVxDetailUpdateDTO 转账明细(微信)
     * @return 更新数量
     */
    @ApiOperation(value = "修改转账明细(微信)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsVxDetailUpdateDTO", dataType = "TransferAccountsVxDetailUpdateDTO", value = "修改转账明细(微信)", paramType = "body")
    })
    Result<Integer> update(TransferAccountsVxDetailUpdateDTO transferAccountsVxDetailUpdateDTO);




    /**
     * 删除单个转账明细(微信)，彻底删除
     * @param transferAccountsVxDetailId 转账明细(微信)id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个转账明细(微信)，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsVxDetailId", dataType = "String", value = "转账明细(微信)id", paramType = "path")
    })
    Result<Integer> delete(String transferAccountsVxDetailId);


    /**
     * 批量删除转账明细(微信)，彻底删除
     * @param transferAccountsVxDetailIds 转账明细(微信)id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除转账明细(微信)，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsVxDetailIds", dataType = "String[]", value = "转账明细(微信)id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] transferAccountsVxDetailIds);


    /**
     * 根据转账明细(微信)id查询转账明细(微信)详情
     * @param transferAccountsVxDetailId 转账明细(微信)id
     * @return 转账明细(微信)详情
     */
    @ApiOperation(value="根据转账明细(微信)id查询转账明细(微信)详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsVxDetailId", dataType = "String", value = "转账明细(微信)id", paramType = "path")
    })
    Result<TransferAccountsVxDetailVO> findById(String transferAccountsVxDetailId);


    /**
     * 查询转账明细(微信)
     * @param transferAccountsVxDetailQuery 转账明细(微信)查询参数
     * @return page
     */
    @ApiOperation(value="查询转账明细(微信)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsVxDetailQuery", dataType = "TransferAccountsVxDetailQuery", value = "转账明细(微信)查询参数", paramType = "query")
    })
    Result<List<TransferAccountsVxDetailListVO>> listAll(TransferAccountsVxDetailQuery transferAccountsVxDetailQuery);


     /**
     * 分页查询转账明细(微信)
     * @param transferAccountsVxDetailQuery 转账明细(微信)查询参数
     * @return page
     */
    @ApiOperation(value="分页查询转账明细(微信)")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "transferAccountsVxDetailQuery", dataType = "TransferAccountsVxDetailQuery", value = "转账明细(微信)查询参数", paramType = "query")
    })
    Result<Page<TransferAccountsVxDetailListVO>> page(TransferAccountsVxDetailQuery transferAccountsVxDetailQuery);


}

